]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
window-tracker: Only emit ::tracked-windows-changed on title changes
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 10 Feb 2023 14:07:50 +0000 (15:07 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 10 Feb 2023 14:12:08 +0000 (15:12 +0100)
Since commit a1d650ce27, window title changes are listened for in the
ShellWindowTracker in order to emit ::tracked-windows-changed when
there are window title changes.

The rest of the things that happen in between (removing the window
from a ShellApp, possibly have it destroyed, and possibly creating a
new ShellApp to re-insert the window) are superfluous and even result
in the altTab switcher popup ending up confused about the applications
available.

Only emit the signal so changes can be followed on D-Bus, but avoid
the ShellApp fiddling otherwise.

Fixes: a1d650ce27 - window-tracker: Emit 'tracked-windows-changed' on title changes
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6385
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2634>

src/shell-window-tracker.c

index df357f81b7e36fef395434ee34d5390b10e7ce9d..bcd2bd4d8233f6f988923d509ff682cad0997938 100644 (file)
@@ -530,7 +530,7 @@ on_title_changed (MetaWindow  *window,
                   gpointer     user_data)
 {
   ShellWindowTracker *self = SHELL_WINDOW_TRACKER (user_data);
-  tracked_window_changed (self, window);
+  g_signal_emit (self, signals[TRACKED_WINDOWS_CHANGED], 0);
 }
 
 static void